package day7;

public class UsbCamera extends Camera implements Usb {
    public UsbCamera(String brand) {
        super(brand);
    }

    @Override
    public void plugin() {
        System.out.println("相机接上了usb口，指示灯变红");

    }

    @Override
    public void unuplug() {
        System.out.println("相机移除了usb口，指示灯灭掉");
    }

    @Override
    public void work() {
        System.out.println("Usb相机拍了一张照片");
        super.takePhoto();

    }
}
